<?php

namespace common\modules\wechat\models;

use common\components\ActiveQuery;
use Yii;

class AccountQuery extends ActiveQuery
{
    /**
     * 激活状态
     * @return static
     */
    public function active()
    {
        return $this->andWhere(['status' => Account::STATUS_ACTIVE]);
    }
}
